<template>
  <el-table :data="tableData" border>
    <el-table-column :label="item.label" v-for="(item,index) in table" :key="index">
      <template slot-scope="scope">
        <span :title="scope.row[item.name]">{{ scope.row[item.name] }}</span>
      </template>
    </el-table-column>
  </el-table>
</template>
<script>
  export default {
    data () {
      return {}
    },
    props: ['table', 'tableData'],
    methods: {}
  }
</script>
